<%--
  Created by IntelliJ IDEA.
  User: Sarah
  Date: 2023/3/29
  Time: 14:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <base href="<%= basePath %>"/>
    <title>注册界面</title>
</head>
<body>

<form action="register" method="post">
    <div>
        昵称：<input type="text" name="name" id="name" value="${person.name}">
        <span style="color: red">
                   <c:if test="${person.name!=null}">${person.name}</c:if>
                </span>
    </div>
    <div>
        密码：<input type="password" name="password" id="password">
        <span style="color: red">
                   <c:if test="${person.password!=null}">${person.password}</c:if>
                </span>
    </div>
    <div>
        年龄：<input type="text" name="age" id="age" value="${person.age}">
        <span style="color: red">
                   <c:if test="${person.age!=null}">${person.age}</c:if>
                </span>
    </div>
    <div>
        电话：<input type="text" name="phoneNo" id="phoneNo" value="${person.phoneNo}">
        <span style="color: red">
                   <c:if test="${person.phoneNo!=null}">${person.phoneNo}</c:if>
                </span>
    </div>
    <div>
        邮箱：<input type="text" name="email" id="email" value="${person.email}">
        <span style="color: red">
                   <c:if test="${person.email!=null}">${person.email}</c:if>
                </span>
    </div>
    <div>
        <input type="submit" value="提交">
    </div>
</form>


</body>
</html>